package com.tongguan.paypos.entity;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.Gson;

/**
 * Created by Joylive on 2016/12/17 .
 */

public class PrintRepeat implements Parcelable{
    private String id;
    private String orderId;
    private String upOrderId;
    private String channelId;
    private String bankAccount;
    private String bank;
    private String merchantId;
    private String payTime;
    private double payMoney;
    private String state;
    private String posId;
    private String cashier;
    private String merchantName;
    private String lowOrderId;
    private String countNum;
    private String amount;
    private String terminalId;
    private double couponMoney;

    protected PrintRepeat(Parcel in) {
        id = in.readString();
        orderId = in.readString();
        upOrderId = in.readString();
        channelId = in.readString();
        bankAccount = in.readString();
        bank = in.readString();
        merchantId = in.readString();
        payTime = in.readString();
        payMoney = in.readDouble();
        state = in.readString();
        posId = in.readString();
        cashier = in.readString();
        merchantName = in.readString();
        lowOrderId = in.readString();
        countNum = in.readString();
        amount = in.readString();
        terminalId = in.readString();
        couponMoney = in.readDouble();
    }

    public static final Creator<PrintRepeat> CREATOR = new Creator<PrintRepeat>() {
        @Override
        public PrintRepeat createFromParcel(Parcel in) {
            return new PrintRepeat(in);
        }

        @Override
        public PrintRepeat[] newArray(int size) {
            return new PrintRepeat[size];
        }
    };

    public static PrintRepeat objectFromData(String str) {

        return new Gson().fromJson(str, PrintRepeat.class);
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getUpOrderId() {
        return upOrderId;
    }

    public void setUpOrderId(String upOrderId) {
        this.upOrderId = upOrderId;
    }

    public String getChannelId() {
        return channelId;
    }

    public void setChannelId(String channelId) {
        this.channelId = channelId;
    }

    public String getBankAccount() {
        return bankAccount;
    }

    public void setBankAccount(String bankAccount) {
        this.bankAccount = bankAccount;
    }

    public String getBank() {
        return bank;
    }

    public void setBank(String bank) {
        this.bank = bank;
    }

    public String getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(String merchantId) {
        this.merchantId = merchantId;
    }

    public String getPayTime() {
        return payTime;
    }

    public void setPayTime(String payTime) {
        this.payTime = payTime;
    }

    public double getPayMoney() {
        return payMoney;
    }

    public void setPayMoney(double payMoney) {
        this.payMoney = payMoney;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getPosId() {
        return posId;
    }

    public void setPosId(String posId) {
        this.posId = posId;
    }

    public String getCashier() {
        return cashier;
    }

    public void setCashier(String cashier) {
        this.cashier = cashier;
    }

    public String getMerchantName() {
        return merchantName;
    }

    public void setMerchantName(String merchantName) {
        this.merchantName = merchantName;
    }

    public String getLowOrderId() {
        return lowOrderId;
    }

    public void setLowOrderId(String lowOrderId) {
        this.lowOrderId = lowOrderId;
    }

    public String getCountNum() {
        return countNum;
    }

    public void setCountNum(String countNum) {
        this.countNum = countNum;
    }

    public String getAmount() {
        return amount;
    }

    public void setAmount(String amount) {
        this.amount = amount;
    }

    public String getTerminalId() {
        return terminalId;
    }

    public void setTerminalId(String terminalId) {
        this.terminalId = terminalId;
    }

    public double getCouponMoney() {
        return couponMoney;
    }

    public void setCouponMoney(double couponMoney) {
        this.couponMoney = couponMoney;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(id);
        dest.writeString(orderId);
        dest.writeString(upOrderId);
        dest.writeString(channelId);
        dest.writeString(bankAccount);
        dest.writeString(bank);
        dest.writeString(merchantId);
        dest.writeString(payTime);
        dest.writeDouble(payMoney);
        dest.writeString(state);
        dest.writeString(posId);
        dest.writeString(cashier);
        dest.writeString(merchantName);
        dest.writeString(lowOrderId);
        dest.writeString(countNum);
        dest.writeString(amount);
        dest.writeString(terminalId);
        dest.writeDouble(couponMoney);
    }
}
